<?php #//AJAX PHP PENNY AUCTION v.1.2

#//////////////////////////////////////////////////////////////////
#//  COPYRIGHT 2009 - 2010 Aaron Helmlinger ALL RIGHTS RESERVED  //
#//////////////////////////////////////////////////////////////////
?>


       <? 
       
  $tabid = 0; // Change This Number To Correspond To The Tab You Want Activated
  include "tab_menu.php"; // To Change The Tabs - Modify This File
  $subtabid = "logout"; // Change This Variable To Correspond To Tab Sub Menu You Want To Display
  include "tab_submenu.php"; //To Change The Sub Menu - Modify This File
  include "category_menu.php"; //To Change The Category Menu - Modify This File
  $page_title_text = $BROWSE_CATEGORY_SEARCH_RESULTS; //Change This Text To The Text That You Want To Show In The Page Title Bar
  $page_title_note = ""; //Change This Text To Display A Note In The Page Title Bar Area
  
  
      
  if ( $PAGES == 0 ) {
 
 $page_title_note = $BROWSE_CATEGORY_SEARCH_RESULTS_NO_RECORDS_FOUND_NOTE;

}
  
      include "page_title.php"; //To Change The Page Title Look - Modify This File
  
  ?>            
      
     <? print $tab_menu ?>  <!-- This displays the Tab Menu - Delete It, If You Do Not Want It Show On The Screen  -->
     <? print $tab_submenu ?>  <!-- This displays the Tab Sub Menu - Delete It, If You Do Not Want It Show On The Screen    -->
     <? print $category_menu ?>  <!--  This displays the Category  Menu - Delete It, If You Do Not Want It Show On The Screen  -->
     <? print $page_title_content_box_start; ?>  <!-- This displays the Title Bar And Content Border - Delete It, If You Do Not Want It Show On The Screen  -->
                                                 <!-- You will also need to delete the "$page_title_content_box_stop" below  -->
        
        
        
         <? //> <!----------------------- START CONTENT HERE -------------------------->  ?>
     


        <?
        if(count($TPL_auctions_list_value) > 0) {
	  	?>
        <table width="98%" border="0" cellspacing="1" cellpadding="4">
            <tr>
                <th width="9%" align="center" height="5">
                    <?=$MSG_167; ?>
                </th>
                <th width="49%" height="5" align="center">
                    <?=$MSG_168; ?>
                </th>
                <th width="14%" height="5" align="center">
                    <?=$MSG_169; ?>
                </th>
                <th width="14%" height="5" align="center">
                    <?=$MSG_170; ?>
                </th>
                <th width="14%" align="center" height="5">
                    <?=$MSG_171; ?>
                </th>
            </tr>
            <?
            foreach($TPL_auctions_list_value as $k=>$tplv) {
            	if($k % 2) {
			?>
            <tr align="center" class="alt-row">
                <?
            	} else {
				?>
            <tr align="center">
                <?
            	}
				?>
                <td align="center">
                    <?=$tplv['img']?>
                </td>
                <td align="left">
                   <?=$tplv['idformat']?>
                </td>
                <td align="right">
                    
                                <?=print_money($tplv['bid'])?>
                   

                </td>
                <td align="center">
                    <?=$tplv['rpr']?>
                </td>
                <td align="center">
                    <?=$tplv['diff']?>
                </td>
            </tr>
            <?
            }
			?>
            <tr align="center">
                <td colspan=5><? print $TPL_auctions_total_value; ?></td>
            </tr>
        </table>
        <?
        }
	  	?>
	<table width=100% cellpadding=0 cellspacing=0 border=0>
		<tr>
			<td align=CENTER>
				<?=$MSG_5117?>&nbsp;<?=$PAGE?>
				<?=$MSG_5118?>&nbsp;<?=$PAGES?>
				<br>
				<?
				$PREV = intval($PAGE - 1);
				$NEXT = intval($PAGE  + 1);
				if($PAGES > 1) {
					if($PAGE > 1) {
					?>
				<a href="<?=basename($_SERVER[PHP_SELF])?>?PAGE=<?=$PREV?>&id=<?=$id?>"><u>
				<?=$MSG_5119?>
				</u></a> &nbsp;&nbsp;
				<?
					}
					$LOW = $PAGE - 5;
					if($LOW <= 0) $LOW = 1;
					$COUNTER = $LOW;
					while($COUNTER <= $PAGES && $COUNTER < ($PAGE+6)) {
						if($PAGE == $COUNTER) {
							print "<B>$COUNTER</B>&nbsp;&nbsp;";
						} else {
							print "<A HREF=\"".basename($_SERVER[PHP_SELF])."?PAGE=$COUNTER&id=$id\"><U>$COUNTER</U></A>&nbsp;&nbsp;";
						}
						$COUNTER++;
					}
				?>
				&nbsp;&nbsp;
				<?
				if($PAGE < $PAGES) {
						?>
				<a href="<?=basename($_SERVER[PHP_SELF])?>?PAGE=<?=$NEXT?>&id=<?=$id?>"><u>
				<?=$MSG_5120?>
				</u></a>
				<?
				}
				}
				?>
			</td>
		</tr>
	</table>		


     
     
    <?// <!----------------------- END CONTENT HERE ------------------------->  ?>
                                                 
     <? print $page_title_content_box_stop; ?>  